 package com.briup.cms.init;

 import org.springframework.beans.factory.annotation.Value;
 import org.springframework.boot.ApplicationArguments;
 import org.springframework.boot.ApplicationRunner;
 import org.springframework.stereotype.Component;


 @Component
 public class ApplicationInit
   implements ApplicationRunner
{
   @Value("${server.port}")
  private int port;

   public void run(ApplicationArguments args) throws Exception {
     System.out.println("*****************swagger访问地址*****************");
     System.out.println("http://localhost:" + this.port + "/swagger-ui.html");
    System.out.println("*****************swagger访问地址*****************");
  }
 }


